package com.example.demo_one.kotlin

fun main(){
// 1. 创建对象
    val man = Person()
    man.name = "张三"
    man.age = 18
    man.show()

    val woman = Person()
    woman.name = "张三"
    woman.age = 18
    woman.show()
}

class Person{
    var name: String = ""
    var age: Int = 0
    fun show(){
        println("name: $name, age: $age")
    }
}